<style>
    a:link{
        text-decoration: none;
    }
    .index_type li:hover{
        color: #C81623;
        background: #cccccc;
    }
    .index_type li a{color: #fff;width: 100%; height: 100%}
    .index_type a:hover{
        color: #C81623;
    }
</style>
<!--菜单-->
<div class="index_type" id="indextype" style="display:none;" onmouseover="over()" onmouseout="out()">
	<ul class="index_type_ul">
    <?php if (!empty($typeData)) { ?>
        <?php foreach ($typeData as $key => $value){ ?>
        <li class="index_type_li">
            <span>
                <a href="{:url('home/shop/shop_list')}?c_id=<?php echo $value['c_id'] ?>&c_pid=<?php echo $value['c_pid'] ?>" target="_blank"><?php echo $value['c_name'] ?></a>
                <b>></b>
            </span>
            <div class="nav_type_list" data="1">
                <ul>
                <?php foreach ($value['son'] as $key => $val): ?>
                    <li>
                        <span style="margin-left: 5px;color: red;">|</span>
                        <a href="{:url('home/shop/shop_list')}?c_id=<?php echo $val['c_id'] ?>&c_pid=<?php echo $value['c_id'] ?>" target="_blank"><?php echo $val['c_name'] ?></a>
                    </li>
                <?php endforeach ?>
                </ul>
            </div>
        </li>
        <?php } ?>
    <?php } ?>
	</ul>
</div>
<!--菜单-->